package org.example.springweibo.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class WeiboCommentVO {
    private int weiboId;

    private int userId;

    private String username;
    private String nickname;
    /**
     * 微博发布时间
     */
    @JsonFormat(pattern = "yyyy年MM月dd日 HH时mm分ss秒", timezone = "GMT+8")
    private Date weiboCreated;

    /**
     * 微博内容
     */
    private String weiboContent;

    /**
     * 评论数量
     */
    private int commentSize;

    private Boolean isOpenComment = false;

    private int commentId;

    private int commentUserId;

    private int commentWeiboId;

    /**
     * 评论的用户名
     */
    private String commentUsername;

    /**
     * 评论内容
     */
    private String commentContent;

    /**
     * 评论时间
     */
    @JsonFormat(pattern = "yyyy年MM月dd日 HH时mm分ss秒", timezone = "GMT+8")
    private Date commentCreated;

    private List<CommentVO> commentList;

}
